package Array.stringmethod;

import java.util.Scanner;

public class String2 {
    public static void main(String[] args){
        int i1=0;
        int i2=0;
        int i3=0;
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入");
        String s=sc.nextLine();
        char[] arr=s.toCharArray(); 
        int q=s.length();
        System.out.println(q);
        for (int i=0;i<s.length();i++){
            char c=arr[i];
            if (c>='A'&& c<='Z'){
                i1+=1;
            } else
            if (c>='a'&&c<='z'){
                i2+=1;
            } else
            if (c>='0'&&c<='9'){
                i3+=1;
            }
        } System.out.println("大写字母字符为："+i1);
        System.out.println("小写字母字符为："+i2);
        System.out.println("数字字符字母为"+i3);
    }
}
